package com.siwei.mes.sync.erp.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.siwei.mes.common.validator.bus.SyncGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * ERP同步工程入参
 *
 * @Description: ERP同步工程入参
 * @Version: 1.0
 * @author: mlchen
 * @date: 2024/8/14 16:14
 */
@Data
public class SyncProject {
    @JSONField(name = "PROID")
    @JsonProperty(value = "PROID")
    @ApiModelProperty(value = "工程id")
    @NotNull(groups = {SyncGroup.class}, message = "工程id为空")
    private Integer PROID;
    @JSONField(name = "CID")
    @JsonProperty(value = "CID")
    @ApiModelProperty(value = "合同id")
    @NotNull(groups = {SyncGroup.class}, message = "合同id为空")
    private Integer CID;
    @JSONField(name = "projectName")
    @JsonProperty(value = "projectName")
    @ApiModelProperty(value = "工程名称")
    private String projectName;
    @JSONField(name = "projectAddress")
    @JsonProperty(value = "projectAddress")
    @ApiModelProperty(value = "工程地址")
    private String projectAddress;
    @JSONField(name = "projectLinkMan")
    @JsonProperty(value = "projectLinkMan")
    @ApiModelProperty(value = "工程联系人")
    private String projectLinkMan;
    @JSONField(name = "projectLinkTel")
    @JsonProperty(value = "projectLinkTel")
    @ApiModelProperty(value = "联系电话")
    private String projectLinkTel;
    @JSONField(name = "lng")
    @JsonProperty(value = "lng")
    @ApiModelProperty(value = "经度")
    private Double lng;
    @JSONField(name = "lat")
    @JsonProperty(value = "lat")
    @ApiModelProperty(value = "纬度")
    private Double lat;
    @JSONField(name = "extraInfo")
    @JsonProperty(value = "extraInfo")
    @ApiModelProperty(value = "额外信息")
    private String extraInfo;
    @JSONField(name = "projectArea")
    @JsonProperty(value = "projectArea")
    @ApiModelProperty(value = "工程区域")
    private String projectArea;
    @JSONField(name = "thProjectId")
    @JsonProperty(value = "thProjectId")
    @ApiModelProperty(value = "砼行工程id")
    private Integer thProjectId;
    @JSONField(name = "action")
    @JsonProperty(value = "action")
    @ApiModelProperty(value = "1:新增 2:更新")
    private String action;
    @JSONField(name = "logId")
    @JsonProperty(value = "logId")
    @ApiModelProperty(value = "日志id")
    private Long logId;
}
